﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace GroundStation.Views
{
    /// <summary>
    /// Interaction logic for StationConsoleView.xaml
    /// </summary>
    public partial class StationConsoleView : Window
    {
        public StationConsoleView()
        {
          
            InitializeComponent();
            IsOpen = true;
        }
        public static bool IsOpen = false;

        private void Window_Closed(object sender, EventArgs e)
        {
            IsOpen = false;
            ViewModels.StationConsoleViewModel vm = this.DataContext as ViewModels.StationConsoleViewModel;
            vm.CloseTCPConnections();
        }
    }
}
